/**
 * Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.springblade.modules.project.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.springblade.core.mp.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 项目表实体类
 *
 * @author Blade
 * @since 2024-11-21
 */
@Data
@TableName("blade_project")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Project对象", description = "项目表")
public class Project extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id")
	@TableId(value = "id",type = IdType.ASSIGN_ID)
	@JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 项目名称
     */
    @ApiModelProperty(value = "项目名称")
    private String projectName;
    /**
     * 合同编号
     */
    @ApiModelProperty(value = "合同编号")
    private String contract;
    /**
     * 合同金额
     */
    @ApiModelProperty(value = "合同金额")
    private BigDecimal contractMoney;
    /**
     * 项目状态
	 * 0项目评估,
	 * 1项目跟踪,
	 * 2项目投标,
	 * 3项目执行,
	 * 4项目完成,
	 * 5项目放弃,
	 * 6条件不符,
	 * 7投标未中
     */
    @ApiModelProperty(value = "项目状态")
    private Integer projectStatus;
    /**
     * 项目类型
     */
    @ApiModelProperty(value = "项目类型")
    private Integer projectType;
    /**
     * 甲方
     */
    @ApiModelProperty(value = "甲方")
    private String partyName;
    /**
     * 客户姓名
     */
    @ApiModelProperty(value = "客户姓名")
    private String partyContacts;
    /**
     * 联系电话
     */
    @ApiModelProperty(value = "联系电话")
    private String partyPhone;
    /**
     * 开始时间
     */
    @ApiModelProperty(value = "开始时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	@TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date startTime;
    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	@TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date endTime;
    /**
     * 合同日期
     */
    @ApiModelProperty(value = "合同签订日期")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	@TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date contractTime;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String projectRemark;


}
